package com.hippo.core.ui.components

import androidx.compose.foundation.Image
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource

@Composable
fun ImageStateButton(
    checkedImageRes: Int,
    defaultImageRes: Int,
    checked: Boolean = false,
    modifier: Modifier = Modifier,
) {

    Image(
        modifier =modifier,
        painter = painterResource(id = if ( checked) checkedImageRes else defaultImageRes),
        contentDescription = null,
    )
}